package util;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
 * http://www.theserverside.com/discussions/thread.tss?thread_id=32838
 * 
 * I think, I am also facing a similar problem as you, but with a little deviation.
 * I have beans globally defined in an application-context(bean-factory)
 * and are to be re-used across different tiers of the application.
 * My objective is, I want to use the same context across different tiers,
 * without re-instantiating the context. In this context,
 * I have some beans which I never want to have the bean-defenitions refreshed,
 * and another group of beans(dynamic beans) which I want to refresh frequently.
 * Dynamic beans, I kept in a classpath location, so that, I can modify the properties,
 * and I can add/remove beans. So, what I am doing is, I created my own singleton application-context 
 * (MyCustomApplicationContext) extending ClassPathXmlApplicationContext,
 * with an additional private element, dynamicContext.
 * In effect, I have a static context as well as dynamic context.
 * I overrided the methods of ClassPathXmlApplicationContext to manage both the static as well as dynamic beans.
 * for eg., getBean() method will check for beans inside static context first and if not found, dynamic context.
 * More over, the refresh method will refresh just the dynamic factories.
 * Since the MyCustomApplicationContext is a singleton, I think I can use this across different tiers,
 * calling the methdos just like - MyCustomApplicationContext.getBean("mybean").
 * Here I wish sombody point out the design flows of this approach, or, is there any correction or an alternate way ?
 * Or, is there another way to use the same instance of BeanFactory across different tiers ?
 * Also, I wish to know, how people do, re-create beanfactory for each client(class), or whenever need some bean ? thanks in advance
 * 
 * 
 */
/**
 * http://springtips.blogspot.fr/2007/06/using-shared-parent-application-context.html
 * 
 *
 */
public class MyApplicationContext extends ClassPathXmlApplicationContext {

}
